package com.wayin.lift.dao;

import com.wayin.lift.entity.PersonnelEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 人员表
 * 
 * @author HYXK
 * @email null@qq.com
 * @date 2020-05-26 09:56:38
 */
@Mapper
@Repository
public interface PersonnelDao extends BaseMapper<PersonnelEntity> {

    List<PersonnelEntity> selectPersonnel();

    PersonnelEntity selectIsHave(String openId);

    List<PersonnelEntity> selectByNumber(String number);

    int insert(PersonnelEntity personnel);

    int update(PersonnelEntity personnel);

    int updateByOpenId(PersonnelEntity personnel);

    PersonnelEntity selectNameAndPwd(@Param("username") String username, @Param("password") String password);

}
